package com.kingsystem.kingteachermarks_backend.KingUtil;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class StringOper {

    public static String getConfigInfo(String configItemName) throws IOException {
        Properties prop = new Properties();
        FileInputStream input = new FileInputStream("src/main/resources/config.properties");
        prop.load(input);
        String configItemInfo = prop.getProperty(configItemName);
        return configItemInfo;
    }

    public static String getCurrenTimeStringForFileName()
    {
        long currentTimeMillis = System.currentTimeMillis();
        return String.valueOf(currentTimeMillis);
    }
}
